import tkinter
from tkinter import ttk

root = tkinter.Tk()
root.geometry("300x300")
style = ttk.Style()
style.map("C.TButton",
    foreground=[('pressed', 'red'), ('active', 'blue')],
    background=[('pressed', '!disabled', 'black'), ('active', 'white')]
    )






root.mainloop()